<?php
 $session_data = $this->session->userdata('protocolo');
?>
<!DOCTYPE html>
<html lang="pt-br">
	<head>
		<meta charset="utf-8">
		<meta http-equiv="X-UA-Compatible" content="IE=edge">
		<meta name="viewport" content="width=device-width, initial-scale=1">
		<meta name="description" content="">
		<meta name="author" content="">

		<title>PROTOCOLO</title>
		<link rel="icon" href="<?php echo base_url('includes/images/protocolo.png'); ?>" type="image/png">
		
		<!-- Bootstrap core CSS -->
		
		<script src="<?php echo base_url('includes/js/jquery-1.11.1.min.js')?>"></script>
		
		<script src="<?php echo base_url('includes/bootstrap/js/bootstrap.min.js') ?>"></script>
		<script src="<?php echo base_url('includes/js/jquery.mask.min.js')?>"></script>
		<script src="<?php echo base_url('includes/js/jquery.validate.min.js')?>"></script>
		
		<!-- PLUGIN DATATABLE -->
		<script src="<?php echo base_url('includes/js/jquery.dataTables.min.js')?>"></script>
		<script src="<?php echo base_url('includes/js/dataTables.responsive.min.js')?>"></script>
		<script src="<?php echo base_url('includes/js/dataTables.bootstrap.js')?>"></script>
		
		
		<script src="<?php echo base_url('includes/js/alertify.min.js')?>"></script>
		<script src="<?php echo base_url('includes/js/jquery.mask.min.js')?>"></script>
		
		
		<link href="<?php echo base_url('includes/bootstrap/css/bootstrap.min.css') ?>" rel="stylesheet">
		

		<link href="<?php echo base_url('includes/css/jquery.dataTables.css') ?>" rel="stylesheet">
		<link href="<?php echo base_url('includes/css/dataTables.bootstrap.css') ?>" rel="stylesheet"> 
		<link href="<?php echo base_url('includes/css/dataTables.responsive.css') ?>" rel="stylesheet">
		
		<script src="<?php echo base_url('includes/js/jquery-ui.js') ?>"></script>
		<script src="<?php echo base_url('includes/js/jquery-ui-timepicker-addon.js') ?>"></script>
		<link href="<?php echo base_url('includes/css/jquery-ui.css') ?>" rel="stylesheet">
		<link href="<?php echo base_url('includes/css/custom.css') ?>" rel="stylesheet">
		<link href="<?php echo base_url('includes/css/alertify.core.css') ?>" rel="stylesheet">
		<link href="<?php echo base_url('includes/css/alertify.bootstrap.css') ?>" rel="stylesheet">
		<style>
		.ui-widget {
		font-size: .8em;
		}
		input, textarea{text-transform:uppercase;}
		.error{color:red;}
		table.dataTable th, table.dataTable td {
				white-space: nowrap;
			}
		fieldset legend {
			border-width: 0;
			padding-bottom: 25px;
		}
		fieldset.cad {
			background-color: #f5f5f5;
			border: 1px solid #e3e3e3;
			border-radius: 4px;
			box-shadow: 0 1px 1px rgba(0, 0, 0, 0.05) inset;
			margin-bottom: 20px;
			min-height: 20px;
		}
		legend {
			margin-bottom: 0px;
		}
		.breadcrumb {
			margin-bottom: 5px;
		}
		.navbar {
			margin-bottom: 5px;
		}
		</style>
		<!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
		<!--[if lt IE 9]>
		<script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
		<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
		<![endif]-->
	</head>
	<body>
	<nav class="navbar navbar-inverse" role="navigation">
	  <div class="container-fluid">
		<!-- Brand and toggle get grouped for better mobile display -->
		<div class="navbar-header">
		  <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1">
			<span class="sr-only">Toggle navigation</span>
			<span class="icon-bar"></span>
			<span class="icon-bar"></span>
			<span class="icon-bar"></span>
		  </button>
		  <img style=" float: left;    height: 45px;    margin: 2px 15px 5px;" src="<?php echo base_url('includes/images/logo.png'); ?>" >
		  <a class="navbar-brand" href="<?php echo base_url('/index.php/');?>">PROTOCOLO</a>
		</div>

		<!-- Collect the nav links, forms, and other content for toggling -->
		<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
			<ul class="nav navbar-nav navbar-left">
				<?php
				//PERMISSAO 
				if(viewPermissao(array('1','2'),$session_data)){
				?>
				<li class="dropdown">
					<a  class="dropdown-toggle  glyphicon glyphicon-list-alt" data-toggle="dropdown" href="#"> EMPENHO</a>
					<ul class="dropdown-menu" role="menu">
						<li><a href="<?php echo base_url('/index.php/empenhos/novo');?>">Cadastrar Empenho</a></li>
						<li class="divider"></li>
						<li><a href="<?php echo base_url('/index.php/empenhos/consulta');?>">Consulta Empenho</a></li>
						<li class="divider"></li>
						<li><a href="<?php echo base_url('/index.php/empenhos/relatorio');?>">Relatorio Empenho</a></li>
						<li class="divider"></li>
						<li><a href="<?php echo base_url('/index.php/empenhos/movimentacao');?>">Movimentacao Empenho</a></li>
					</ul>
				</li>
				
				<li class="dropdown">
					<a  class="dropdown-toggle  glyphicon glyphicon-tasks" data-toggle="dropdown" href="#"> COMUNICACAO INTERNA (CI)</a>
					<ul class="dropdown-menu" role="menu">
						<li><a href="<?php echo base_url('/index.php/cis/novo');?>">Cadastrar C.I.</a></li>
						<li class="divider"></li>
						<li><a href="<?php echo base_url('/index.php/cis/consulta');?>">Consulta C.I.</a></li>
					</ul>
				</li>
				<?php
				}
				?>
			</ul>
			<ul class="nav navbar-nav navbar-right">
				
				<li><a href="#"><?php echo $session_data['nome'];?></a></li>
				<li><a href="<?php echo base_url('/index.php/login/sair');?>">SAIR</a></li>
				
			</ul>
		</div><!-- /.navbar-collapse -->
	  </div><!-- /.container-fluid -->
	</nav>
